Tile Store
open class TileStore
Content copied to clipboard
TileStore manages downloads and storage for requests to tile-related API endpoints, enforcing a disk usage quota: tiles available on disk may be deleted to make room for a new download. This interface can be used by an app developer to set the disk quota. The rest of TileStore API is intended for native SDK consumption only.
Functions
addObserver
Link copied to clipboard
computeCoveredArea
Link copied to clipboard
open fun computeCoveredArea(@NonNull() descriptors: List<TilesetDescriptor>, @NonNull() callback: TileRegionGeometryCallback)
Content copied to clipboard
create
Link copied to clipboard
Creates a TileStore instance for the given storage path.The returned instance exists as long as it is retained by the client.If the tile store instance already exists for the given path this method will return it without creatinga new instance, thus making sure that there is only one tile store instance for a path at a time.If the given path is empty, the tile store at the default location is returned.On iOS, this storage path is excluded from automatic cloud backup.On Android, please exclude the storage path in your Manifest.Please refer to the [Android Documentation](https://developer.android.com/guide/topics/data/autobackup.html#IncludingFiles) for detailed information.
getAllTileRegions
Link copied to clipboard
getTileRegion
Link copied to clipboard
open fun getTileRegion(@NonNull() id: String, @NonNull() callback: TileRegionCallback)
Content copied to clipboard
getTileRegionGeometry
Link copied to clipboard
open fun getTileRegionGeometry(@NonNull() id: String, @NonNull() callback: TileRegionGeometryCallback)
Content copied to clipboard
getTileRegionMetadata
Link copied to clipboard
open fun getTileRegionMetadata(@NonNull() id: String, @NonNull() callback: TileRegionMetadataCallback)
Content copied to clipboard
loadTileRegion
Link copied to clipboard
@NonNull()
Content copied to clipboard
@NonNull()
Content copied to clipboard
@NonNull()
Content copied to clipboard
Loads a new tile region or updates the existing one.Creating of a new region requires providing both geometry and tilesetdescriptors to the given load options, otherwise the load request failswith RegionNotFound error.If a tile region with the given id already exists, it gets updated withthe values provided to the given load options.
removeObserver
Link copied to clipboard
removeTileRegion
Link copied to clipboard
open fun removeTileRegion(@NonNull() id: String, @NonNull() callback: TileRegionCallback)
Content copied to clipboard
setOption
Link copied to clipboard
tileRegionContainsDescriptors
Link copied to clipboard
open fun tileRegionContainsDescriptors(@NonNull() id: String, @NonNull() descriptors: List<TilesetDescriptor>, @NonNull() callback: TileRegionBooleanCallback)
Content copied to clipboard